<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组</title>
</head>
<body>
<script>
    const a1 = [1,2,3,4];
    for (let i = 0;i < a1.length;i++){
        console.log(a1[i]);
    }


    const a2 = [1,"two",3,null];
    const a3 = [
        "chain",
        "brain",
        "grasp",
        "clasp"
    ];
    const a4 = [
        {
            name :'',
            hardness:9
        },
        {
            name:"",
            hardness:9
        },
        {
            name:"",
            hardness:9
        }
    ];
    const a5 = [
        [1,3,5],
        [2,4,6]
    ];
</script>
</body>
</html>